//
//  HACChartUtils.h
//  Pods
//
//  Created by Hotacool on 2017/8/30.
//
//

#import <Foundation/Foundation.h>

@interface HACChartUtils : NSObject

+ (void)drawLine:(CGContextRef)gc pt1:(CGPoint)pt1 pt2:(CGPoint)pt2 clr:(UIColor *)clr width:(float)width;

+ (void)drawLine:(CGContextRef)gc pts:(CGPoint *)pts count:(int)icount clr:(UIColor *)clr width:(float)width;

+ (void)drawStrInRect:(NSString *)str rect:(CGRect)rect font:(UIFont *)font color:(UIColor *)color alignment:(NSTextAlignment)alignment;

+ (void)drawAttributedStrInRect:(NSAttributedString *)str rect:(CGRect)rect;

+ (void)drawLinearGradient:(CGContextRef)context
                      path:(CGPathRef)path
                startColor:(CGColorRef)startColor
                  endColor:(CGColorRef)endColor ;

+ (NSString *)transferVolumeToStandardString:(long double)num ;
@end
